package com.css.fxfzfxqh.modules.buildings.probabilityEvaluation.casualtiesPE.repository;

import com.css.fxfzfxqh.modules.buildings.definitiveEvaluation.resistEarthquakesDE.param.AssessParam;
import com.css.fxfzfxqh.modules.buildings.probabilityEvaluation.casualtiesPE.entity.CasualtiesPE;
import com.css.fxfzfxqh.modules.buildings.probabilityEvaluation.casualtiesPE.entity.CasualtiesPECalculation;
import com.css.fxfzfxqh.modules.buildings.probabilityEvaluation.casualtiesPE.param.CasualtiesPECalculationParam;
import com.css.fxfzfxqh.modules.buildings.probabilityEvaluation.casualtiesPE.vo.CasualtiesPCCPEVO;
import com.css.fxfzfxqh.modules.buildings.probabilityEvaluation.casualtiesPE.vo.CasualtiesXYPEVO;
import com.css.fxfzfxqh.modules.largeScreen.entity.Calculation;

import java.util.List;
import java.util.Map;

public interface CasualtiesPERepository {
    void addAssess(CasualtiesPE param);

    CasualtiesPE findById(String id);

    void upDateAssess(CasualtiesPE param);

    String queryLatest(StringBuilder code);

    Map<String, Object> getPage(int curPage, int pageSize, AssessParam param);

    void batchCalculation(List<CasualtiesPECalculation> list);

    List<CasualtiesPCCPEVO> getListPCC(CasualtiesPECalculationParam param);

    List<CasualtiesXYPEVO> getListXY(CasualtiesPECalculationParam param);

    Map<String, Object> queryCalculation(int curPage,int pageSize,String id, String casualties, String time, String years);

    void updateCorrectionValue(CasualtiesPECalculation param);

    void deleteEvaluateResult(String assessId);

    List<Map<String, Object>> getSumByDivisionAndAssessCodes(String ppName, String cityName, String name, String id, String condition);

    List<Map<String, Object>> getSumByTaskId(String taskId);

    List<CasualtiesPECalculation> getOtherConditionData(String assessId, String geographyId, String casualties, String time, String id);

    void updateExpectValue(CasualtiesPECalculation casualtiesPECalculation);

    List<CasualtiesPECalculation> getCasualtiesResult(String taskId, String province, String casualties, String time);

    List<Calculation> getValue(List<String> taskIdList, String code, String s);
}
